<template>
  <img :src="url" alt="" :style="{'width':size+'px','height':size+'px'}" class="avatar-container">
</template>

<script>
export default {
  name: 'Avatar',
  props: {
    url: {
      type: String,
      required: true,
      default: () => ''
    },
    size: {
      type: Number,
      required: false,
      default: () => 40
    },
  }
}
</script>

<style lang="scss" scoped>
.avatar-container {
  display: block;
  border-radius: 50%;
  object-fit: cover;
}
</style>